<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>添加文章</title>
    <link href="${base}/resource/admin/css/common.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="${base}/resource/admin/js/jquery.js"></script>
    <script type="text/javascript" src="${base}/resource/admin/js/jquery.validate.js"></script>
    <script type="text/javascript" src="${base}/resource/admin/editor/kindeditor.js"></script>
    <script type="text/javascript" src="${base}/resource/admin/js/common.js"></script>
    <script type="text/javascript" src="${base}/resource/admin/js/input.js"></script>
    <script type="text/javascript" src="${base}/resource/admin/layer/layer.js"></script>
    <script type="text/javascript" src="${base}/resource/admin/layer/layer-mext.js"></script>
    <script type="text/javascript">
        $().ready(function() {
            var $inputForm = $("#inputForm");
        [@flash_message /]

        });
    </script>
</head>
<body>
<div class="path">
    <a href="${base}/common/index">首页</a> &raquo;添加岗位
</div>
<form id="inputForm" action="update" method="post" class="required-form" onsubmit="return validateForm(this)">
    <input type="hidden" name="id" value="${entity.id}"/>
    <table class="input tabContent">
        <tr>
            <th>
                <span class="requiredField">*</span>标题
            </th>
            <td>
                <input type="text" name="title" class="text required" value="${entity.title}" maxlength="100" />
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>公司
            </th>
            <td>
                <input type="text" name="company" class="text" maxlength="100" value="${entity.company}" />
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>报酬
            </th>
            <td>
                <input type="text" name="reward" class="text" maxlength="100" value="${entity.reward}"/>
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>工作地址
            </th>
            <td>
                <input type="text" name="workAddress" class="text" maxlength="100" value="${entity.workAddress}"/>
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>所属地区
            </th>
            <td>
                <label>
                    <input type="text" name="area.name" class="text required" readonly="readonly" value="${entity.area.name}" maxlength="100" />
                    <input type="hidden" name="area.id"  value="${entity.area.id}"/>
                    <input type="button"  class="layer-area" value="获取地区">
                </label>
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>工作地址（地图）
            </th>
            <td>
                    <span class="fieldSet">
						<input type="text" name="lng" class="text required" value="${entity.lng}"/>
                        <input type="text" name="lat" class="text required" value="${entity.lat}"/>
                        <input type="button"  class="layer-map" value="获取坐标">
					</span>
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>置顶
            </th>
            <td>
                <label>
                    <input type="checkbox" name="isTop" [#if entity.isTop]checked="checked"[/#if] />置顶
                </label>
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>发布
            </th>
            <td>
                <label>
                    <input type="checkbox" name="isPublication" [#if entity.isPublication]checked="checked"[/#if]/>发布
                </label>
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>招聘人数
            </th>
            <td>
                <input type="text" name="partCount" class="text" maxlength="100" value="${entity.partCount}"/>
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>岗位描述:
            </th>
            <td>
                <textarea id="editor" name="description" class="editor" style="width: 100%;">${entity.description}</textarea>
            </td>
        </tr>

        <tr>
            <th>
                &nbsp;
            </th>
            <td>
                <input type="submit" class="button" value="提交" />
                <input type="button" class="button" value="返回" onclick="location.href='list'" />
            </td>
        </tr>
    </table>
</form>
</body>
</html>